package com.zh.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.context.annotation.Configuration;

@Configuration
@RabbitListener(queues = "fanout.A") //监听队列的名称
public class FanoutAReceiver {

    @RabbitHandler
    public void processDirect(String json){
        System.out.println("fanoutA监听消息====："+json);
    }
}
